{#**
*
* 功能描述（充值模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}

{#include file="header.tpl" title="充值" menuIdx=2 headImg="user" #}
{#include file="define.tpl" scope=parent#}
<div class="block box">
    <div id="ur_here">
        当前位置: <a href=".">首页</a> <code>/</code> 用户中心 <code>/</code> 充值 </div>
</div>
<script>
	function checkamount(obj)
	{
		var val = $(obj).val();
		if(val != "0.01")
		{
			alert("测试期间金额仅限0.01")
			$(obj).val(0.01);
		}
	}
</script>
<div class="usBox">
    <div class="usBox_2 clearfix">
        <div style="height: 200px;">
            <div id="pwd_type_mobile" style="float: left; display: block;">
                <form action="index.php?action=user.docharge" method="post" target='_blank'>
                    <table width="100%" border="0" cellpadding="0" align="center">
                        <tr height="40">
                            <td width="120" align="right" class="input_label">方式：</td>
                            <td width="250">
							{#foreach $g_charge_type as $k => $v#}
                                {#$v#}<input name="type" type='radio' value="{#$k#}" {#if $k==1#}checked{#else#}disabled{#/if#}/>
							{#/foreach#}
                            </td>
                            <td></td>
                        </tr>
                        <tr height="40">
                            <td align="right" class="input_label">金额：</td>
                            <td>
                                <input name="amount" type="text" size="25" class="inputBg1" onchange="checkamount(this)" value="0.01"/>
                            </td>
                        </tr>
                        <tr height="40">
							<td></td><td></td>
                            <td align="left">
                                <input type="submit" name="submit" value="充值" class="button_nomarl"/>
                            </td>
                        </tr>		  		  
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
{#include file="footer.tpl"#}
